Optimal. Leaf size=80 \[ -\frac {e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}-\frac {\log \left (1+\frac {d}{e x}\right ) \left (a+b \log \left (c x^n\right )\right )}{d^2}+\frac {b n \log (d+e x)}{d^2}+\frac {b n \text {Li}_2\left (-\frac {d}{e x}\right )}{d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {2389, 2379,
2438, 2351, 31} \begin {gather*} \frac {b n \text {PolyLog}\left (2,-\frac {d}{e x}\right )}{d^2}-\frac {\log \left (\frac {d}{e x}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d^2}-\frac {e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac {b n \log (d+e x)}{d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2351
Rule 2379
Rule 2389
Rule 2438
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{x (d+e x)^2} \, dx &=\frac {\int \frac {a+b \log \left (c x^n\right )}{x (d+e x)} \, dx}{d}-\frac {e \int \frac {a+b \log \left (c x^n\right )}{(d+e x)^2} \, dx}{d}\\ &=-\frac {e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac {\int \frac {a+b \log \left (c x^n\right )}{x} \, dx}{d^2}-\frac {e \int \frac {a+b \log \left (c x^n\right )}{d+e x} \, dx}{d^2}+\frac {(b e n) \int \frac {1}{d+e x} \, dx}{d^2}\\ &=-\frac {e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac {\left (a+b \log \left (c x^n\right )\right )^2}{2 b d^2 n}+\frac {b n \log (d+e x)}{d^2}-\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{d^2}+\frac {(b n) \int \frac {\log \left (1+\frac {e x}{d}\right )}{x} \, dx}{d^2}\\ &=-\frac {e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac {\left (a+b \log \left (c x^n\right )\right )^2}{2 b d^2 n}+\frac {b n \log (d+e x)}{d^2}-\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )}{d^2}-\frac {b n \text {Li}_2\left (-\frac {e x}{d}\right )}{d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 96, normalized size = 1.20 \begin {gather*} \frac {\frac {2 d \left (a+b \log \left (c x^n\right )\right )}{d+e x}+\frac {\left (a+b \log \left (c x^n\right )\right )^2}{b n}-2 b n (\log (x)-\log (d+e x))-2 \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {e x}{d}\right )-2 b n \text {Li}_2\left (-\frac {e x}{d}\right )}{2 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.11, size = 521, normalized size = 6.51
method | result | size |
risch | \(-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (e x +d \right )}{2 d^{2}}-\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (e x +d \right )}{2 d^{2}}+\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 d \left (e x +d \right )}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2 d \left (e x +d \right )}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (x \right )}{2 d^{2}}+\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (x \right )}{2 d^{2}}+\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \left (e x +d \right )}{2 d^{2}}-\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2 d \left (e x +d \right )}-\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \left (x \right )}{2 d^{2}}-\frac {b n \ln \left (x \right )^{2}}{2 d^{2}}-\frac {b n \ln \left (x \right )}{d^{2}}-\frac {b \ln \left (c \right ) \ln \left (e x +d \right )}{d^{2}}+\frac {b \ln \left (c \right )}{d \left (e x +d \right )}-\frac {a \ln \left (e x +d \right )}{d^{2}}+\frac {a}{d \left (e x +d \right )}+\frac {a \ln \left (x \right )}{d^{2}}-\frac {b \ln \left (x^{n}\right ) \ln \left (e x +d \right )}{d^{2}}+\frac {b \ln \left (x^{n}\right )}{d \left (e x +d \right )}+\frac {b \ln \left (x^{n}\right ) \ln \left (x \right )}{d^{2}}+\frac {b \ln \left (c \right ) \ln \left (x \right )}{d^{2}}-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \left (x \right )}{2 d^{2}}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \left (e x +d \right )}{2 d^{2}}-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2 d \left (e x +d \right )}+\frac {b n \ln \left (e x +d \right ) \ln \left (-\frac {e x}{d}\right )}{d^{2}}+\frac {b n \dilog \left (-\frac {e x}{d}\right )}{d^{2}}+\frac {b n \ln \left (e x +d \right )}{d^{2}}\) | \(521\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c x^{n} \right )}}{x \left (d + e x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+b\,\ln \left (c\,x^n\right )}{x\,{\left (d+e\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________